package com.haier.npt.exception;



/**
 * 异常枚举类
 *
 * @author lixu
 *
 */
public enum ExceptionCode implements ExceptionResolvable{

	SYS_APP_EXISTS 			(10001,"指定的app名称已经存在"),
	SYS_APP_NOT_EXISTS		(10002,"指app不存在"),
	SYS_APP_EXPIRE 			(10003,"该App已经过期"),
	SYS_APP_ERROR		    (10004,"appKey 错误"),
	SYS_APP_LOGIN_ERROR		(10005,"appKey登录失败"),
	SYS_APP_NOT_ALLOW_LOGIN	 (10006,"该appKey不允许登录"),
	SYS_APP_ISINNERAPP      (10007,"删除内容内包含内部appKey无法删除"),
	USER_LOGIN_FAILED 		(10008,"用户登录失败"),
	FETCH_USER_INGO_ERROR (10009,"获取用户信息失败"),
	TOKEN_INVALID	 (10010,"无效的token") ,//token 对应的app对象无效的时候，会报此错误
	
	SYSTEM_ERROR				(99999, "系统异常");


	/**
	 * 异常码
	 */
	private Integer code;

	/**
	 * 异常消息
	 */
	private String message;

	private ExceptionCode(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}


	public String getMessage() {
		return message;
	}



}

